package com.matrix.async.handle;

import java.util.Map;

import com.matrix.async.core.TaskHandler;
import com.matrix.core.tools.LogUtil;

public class TestHandler2 implements TaskHandler {
	
	private static final long serialVersionUID = -1474627493567922828L;

	@Override
	public boolean execute(Map<String, String> dataMap) {
		LogUtil.info("》》》》》》》》》》》》》》》》》》》》》》》》");
		LogUtil.info("》》》》》》》》》》》》》》》》》》》》》》》》");
		LogUtil.info("send邮件》》》》》》》》》》》》执行成功");
		LogUtil.info("》》》》》》》》》》》》》》》》》》》》》》》》");
		LogUtil.info("》》》》》》》》》》》》》》》》》》》》》》》》");
		try {
			Thread.sleep(100000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return true;
	}

	@Override
	public void onError(Map<String, String> dataMap, Exception e) {
		LogUtil.info("task handle onError ");
	}
}
